package com.stylefeng.guns.modular.system.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.stylefeng.guns.modular.system.dao.RealtimeMapper;
import com.stylefeng.guns.modular.system.model.Realtime;
import com.stylefeng.guns.modular.system.service.IRealtimeService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author stylefeng123
 * @since 2018-06-27
 */
@Service
public class RealtimeServiceImpl extends ServiceImpl<RealtimeMapper, Realtime> implements IRealtimeService {

	@Autowired
	private RealtimeMapper realtimeMapper;
	
	@Override
	public List<Map<String, Object>> selectMapsByDm(Page<Realtime> page,
			String gScode, String gTime,Integer gType) {
		return realtimeMapper.selectMapsByDm(page,gScode,gTime,gType);
	}

	@Override
	public List<Map<String, Object>> selectMonitorMapsByDm(String gScode,
			String gTime) {
		return realtimeMapper.selectMonitorMapsByDm(gScode,gTime);
	}

	@Override
	public List<Map<String, Object>> selectRealTime() {
		return realtimeMapper.selectRealTime();
	}

	@Override
	public List<Map<String, Object>> selectMyRealTime() {
		return realtimeMapper.selectMyRealTime();
	}

}
